package com.heima.common.exception;
import com.heima.model.common.enums.AppHttpCodeEnum;

public class CustomException extends RuntimeException {

    private String msg;
    private AppHttpCodeEnum appHttpCodeEnum;

    public CustomException(AppHttpCodeEnum appHttpCodeEnum){
        this.appHttpCodeEnum = appHttpCodeEnum;
    }

    public CustomException(String msg){
        this.msg = msg;
    }
    public  CustomException(AppHttpCodeEnum appHttpCodeEnum,String msg){
        this.appHttpCodeEnum = appHttpCodeEnum;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public AppHttpCodeEnum getAppHttpCodeEnum() {
        return appHttpCodeEnum;
    }

}
